import { createGame } from '@/game.js';

addEventListener('load', () => {
  const game = createGame();

  Array
  .from(document.getElementsByClassName('ui-button'))
  .forEach(
    elem => {
      elem.addEventListener('click', game.handleToolSelected);
    }
  );

  document.getElementById('button-pause').addEventListener('click', game.togglePause);
});
